<template>
	<view>
		<view class="bj">
			<view class="sy" @tap="goHome">
			</view>
			<view class="top">
				<image src="http://static.bsyjk.cn/sing/D7A8DA4DB6FC459983688F4BCE3EAA1A.png"></image>
			</view>
			<view class="bzy">
				<view class="bt">
					<text class="btwz">签到说明</text>
				</view>
				<view class="center-box">
					<view class="bzy0">
						<view class="bzy1">
							<view class="bzy11">
								自己签到
							</view>
							<view class="bzy12"></view>
						</view>
						<view class="bzy2">
							{{item.mySign||''}}
						</view>
					</view>
					<view class="bzy0">
						<view class="bzy1">
							<view class="bzy11">
								健康顾问签到
							</view>
							<view class="bzy12"></view>
						</view>
						<view class="bzy2">
							{{item.adviserSign||''}}
						</view>
					</view>
					<view class="bzy0">
						<view class="bzy1">
							<view class="bzy11">
								奖励机制
							</view>
							<view class="bzy12"></view>
						</view>
						<view class="bzy2">
							{{item.reward||''}}
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				storeId: 0,
				item: {},
			}
		},
		onLoad(e) {
			if (e.storeId) {
				this.storeId = parseInt(e.storeId);
			}
			this.getData();
		},
		methods: {
			getData() {
				this.$loginl.get(global.apiUrls.signExpUrl, {
					storeId: this.storeId
				}).then(res => {
					if (res.data.result) {
						this.item = res.data.result;
					}
				})
			},
			goHome() {
				uni.switchTab({
					url: '/pages/tab/home'
				});
			}
		},
	}
</script>

<style lang="scss">
	.bj {
		background: url("http://static.bsyjk.cn/sing/EC5D56411D9B4E7DBFC7C46CD16DEDE2.png") no-repeat;
		width: 750rpx;
		height: 100vh;
		background-size: 100% 100%;
		position: relative;
		.sy{
			width: 50rpx;
			height: 46rpx;
			background: url('https://pics.leshiguang.com/vpage/2024/01/11/b02e2988c5a34d2a84f30a3991e1156e.png') no-repeat;
			background-size: 100% 100%;
			position: absolute;
			top:100rpx;
			left: 40rpx;
		}

		.top {
			display: flex;
			align-items: center;
			justify-content: center;
			justify-items: center;

			image {
				width: 670rpx;
				height: 236rpx;
				margin-top: 200rpx;
			}
		}


		.bzy {
			width: 652rpx;
			height: 728rpx;
			background: url(http://static.bsyjk.cn/sing/98FF262865284B43B90EC38CA0E54F3E.png);
			background-size: 100% 100%;
			margin-left: 52rpx;
			padding: 100rpx 60rpx;
			position: relative;
			margin-top: 100rpx;


			.bt {
				text-align: center;
				position: absolute;
				top: -20rpx;
				left: 200rpx;

				.btwz {
					font-size: 36rpx;
					color: #ffffff;
					background-color: #5C8DE3;
					border-radius: 100rpx;
					padding: 10rpx 50rpx;
				}
			}

			.center-box {
				height: 500rpx;
				overflow: auto;

				.bzy0 {
					.bzy1 {
						width: 530rpx;
						display: flex;
						align-items: center;

						.bzy11 {
							background-color: #FD669D;
							border-radius: 100rpx;
							padding: 5rpx 20rpx;
							color: #ffffff;
							white-space: nowrap;
						}

						.bzy12 {
							width: 100%;
							border-bottom: 1rpx dashed #FD669D;
							margin-left: 10rpx;
						}
					}

					.bzy2 {
						width: 530rpx;
						padding: 15rpx;
						color: #5C8DE3;
						line-height: 40rpx;
					}
				}
			}
		}
	}
</style>
